Xbasic

INDEX.KEY_POSITION_GET Function

Syntax

Index_Position as N = Key_Position_Get(N record_number)

Arguments

Index_Position

The position of the record's entry within the index.

record_number

The record number of the record.

Description

Returns position of the record within the index.

Discussion

The .KEY_POSITION_GET() method returns position of the record within the index.

Example

dim tbl as P
dim indx as P
tbl = table.open("customer")
indx = tbl.index_primary_put("Lastname")
? indx.find_first()
= Key = "Abrams                                             
Record = 32
? indx.key_position_get(32)
= 1

See Also